package com.puny.utils
{
	import flexunit.framework.TestCase;

	public class RandomTest extends TestCase
	{
		public function RandomTest(methodName:String=null)
		{
			super(methodName);
		}
		
		public function testSign():void {
			for(var i:int = 0;i < 100;i++) {
				var sign:Number = Random.sign();
				assertTrue(sign == 1 || sign == -1);
			}
		}
		
		public function testInteger():void {
			for(var i:int = 0;i < 100;i++) {
				var n:int = Random.integer(100);
				assertTrue(n < 100);
			}
		}
		
		public function testInstance():void {
			var random:Random = new Random();
			assertNotNull(random);
		}
	}
}